<?php
namespace App\Pay\Gateway\Qqpay;

class NativeGateway extends Gateway
{

    public function pay($payload)
    {

        $payload['trade_type'] = $this->getTradeType();
        return $this->requestOrder($payload)->get('code_url');
    }

    protected function getTradeType(): string
    {
        return 'NATIVE';
    }
}
